package com.sly.slf4jmdc.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * demo service
 *
 * @author SLY
 * @date 2022/3/10
 */
@Slf4j
@RestController
@RequestMapping("/demo")
public class DemoService {

    @RequestMapping("/test01")
    public Object test01(){
        log.info("Service日志");
        Map<String, Object> result = new HashMap<>(16);
        result.put("result", "success");
        return result;
    }
}
